import moment from 'moment'

// 公共模块
export const baseURL = 'http://localhost:8081/admin/' 
export const imageBaseURL = baseURL + 'image/'

export const formatterTime = (row, column, cellValue, index) => {
	if (!cellValue) {
		return ''
	}
	return moment(cellValue).format('YYYY-MM-DD HH:mm:ss')
}

export const formatterTime1 = (time) => {
	if (!time) {
		return ''
	}
	return moment(time).format('YYYY-MM-DD HH:mm:ss')
}